package com.dyna.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class FileNode {

    public FileNode(String name, long size) {
        this.fileName = name;
        this.size = size;
    }

    @ApiModelProperty("文件名")
    private String fileName;

    @ApiModelProperty("文件大小")
    private Long size;

    @ApiModelProperty("子节点")
    private List<FileNode> children;

}